﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebForm.Test" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <% 
            System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
            sw.Start();//开始记录时间
            
            sw.Stop();//结束记录时间
            Response.Write("程序的运行时间：" + sw.Elapsed.Seconds + " 秒<br/>");
            Response.Write("程序的运行时间：" + sw.Elapsed.Milliseconds + " 毫秒");
        %>
    </div>
    </form>
</body>
</html>
